package cn.qin.Actions;

import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class logoutAction extends ActionSupport {
	public String execute(){
		HttpSession hs=ServletActionContext.getRequest().getSession();
		System.out.println(hs.getAttribute("name"));
		hs.removeAttribute("name");
		System.out.println(hs.getAttribute("name"));
		return SUCCESS;	
	}

}
